kubectl config set-cluster kubernetes --certificate-authority={{ PKI_PATH }}/ca.pem --embed-certs=true --server=https://{{ VIP }}:{{ HAPROXY_KUB_API_PORT}} --kubeconfig={{ KUBERNETES_CONFIG_PATH }}/kube-proxy.kubeconfig
kubectl config set-credentials kube-proxy --client-certificate={{ PKI_PATH }}/kube-proxy.pem --client-key={{ PKI_PATH }}/kube-proxy-key.pem --embed-certs=true --kubeconfig={{ KUBERNETES_CONFIG_PATH }}/kube-proxy.kubeconfig
kubectl config set-context default --cluster=kubernetes --user=kube-proxy --kubeconfig={{ KUBERNETES_CONFIG_PATH }}/kube-proxy.kubeconfig
kubectl config use-context default --kubeconfig={{ KUBERNETES_CONFIG_PATH }}/kube-proxy.kubeconfig
